package network;

import coreAlgorithm.Node;

/**
 * Is for the network, so it can manage attached nodes and assign an Address to them.
 * 
 * @author Pentius
 *
 */
public class Subscriber {
	private Address address;
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public Node getNode() {
		return node;
	}
	private final Node node;
	public Subscriber(Address address, Node node) {
		super();
		this.address = address;
		this.node = node;
	}
	public Subscriber(Node node) {
		super();
		this.node = node;
	}


	
	
}
